<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>

<body>
    <div id="app">
        <ul>
            <li v-for="item in arr">{{item}}</li>
        </ul>
        <hr>
        <ul>
            <li v-for="(item,index) in arr">{{item}}-{{index}}</li>
        </ul>
        <hr>
        <ul>
            <li v-for="(item,index) in arr2">{{item.name}}年龄{{item.age}},性别{{item.gender}}</li>
        </ul>
        <hr>
        <ul>
            <li v-for="(item,key) in obj">{{key}}:{{item}}</li>
        </ul>
    </div>
    <script>
        new Vue({
            el: "#app",
            data: {
                arr: ["html", "css", "javascript", "jQuery", "Node"],
                arr2: [{
                    name: "张三",
                    age: 16,
                    gender: "男"
                }, {
                    name: "李四",
                    age: 17,
                    gender: "女"
                }, {
                    name: "王五",
                    age: 20,
                    gender: "男"
                }],
                obj: {
                    name: "Vue",
                    age: 7,
                    job: "web前端框架"
                },
            }
        })
    </script>
</body>

</html>